package com.dsg.entity.oil;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description
 * @Author system
 * @Date 2020-06-29
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dsg_oil_account")
@ApiModel(value = "DsgOilAccount对象", description = "油公司账户")
public class DsgOilAccount implements Serializable {
    private static final long serialVersionUID = 4731126008346088371L;

    /**
     * 主键
     */
    @TableId(value = "OID")
    @ApiModelProperty(value = "主键", name = "oid")
    private String oid;

    /**
     * 油公司资料OID
     */
    @TableField(value = "PID")
    @ApiModelProperty(value = "油公司资料OID", name = "pid")
    private String pid;

    /**
     * 账户编号
     */
    @TableField(value = "ACCOUNT_NO")
    @ApiModelProperty(value = "账户编号", name = "accountNo")
    private String accountNo;

    /**
     * 账户名称
     */
    @TableField(value = "ACCOUNT_NAME")
    @ApiModelProperty(value = "账户名称", name = "accountName")
    private String accountName;

    /**
     * 是否默认账户 0:否 1:是
     */
    @TableField(value = "IS_DEFAULT")
    @ApiModelProperty(value = "是否默认账户 0:否 1:是", name = "isDefault")
    private Integer isDefault;

    /**
     * 企業編號
     */
    @TableField(value = "ENT_CODE")
    @ApiModelProperty(value = "企業編號", name = "entCode")
    private String entCode;

    /**
     * 创建人
     */
    @TableField(value = "CREATER")
    @ApiModelProperty(value = "创建人", name = "creater")
    private String creater;

    /**
     * 创建时间
     */
    @TableField(value = "CREATE_TIME")
    @ApiModelProperty(value = "创建时间", name = "createTime")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField(value = "UPDATER")
    @ApiModelProperty(value = "更新人", name = "updater")
    private String updater;

    /**
     * 更新时间
     */
    @TableField(value = "UPDATE_TIME")
    @ApiModelProperty(value = "更新时间", name = "updateTime")
    private Date updateTime;

    /************************查询条件**********************/
    /**
     * 油公司编号
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "油公司编号", name = "oilComNo")
    private String oilComNo;

    /************************枚舉**********************/
    public enum AppStatus {
        no(0), yes(1);
        Integer code;

        AppStatus(int code) {
            this.code = code;
        }

        public Integer getCode() {
            return code;
        }
    }
}
